home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_09_1986_Transactor_Publishing.d64
/
line calc
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
88 lines
0 rem line calc (7/85) :
1 :
2 rem 2 statements, 1 function
3 :
4 rem keyword characters: 13
5 :
6 rem keyword routine line ser #
7 rem s/jump jum 8846 130
8 rem s/call cal 8870 131
9 rem f/line( line 8902 132
10 :
11 rem u/usfp (2620/006)
12 :
13 rem ================================
14 :
136 .asc "jum[208]cal[204]"
621 .asc "line": .byte $a8
1136 .word jum-1,cal-1
1621 .word line-1
2620 usfp ldx #0
2622 stx $0d
2624 sta $62
2626 sty $63
2628 ldx #$90
2630 sec
2632 jmp $bc49
2634 ;
8846 jum jsr $b08b
8848 bit $0e
8850 bpl jm1
8852 ldy #0
8854 lda ($47),y
8856 sta $60
8858 iny
8860 lda ($47),y
8862 sec
8864 jmp $a8c7
8866 jm1 jmp $ad99
8868 ;
8870 cal lda #3
8872 jsr $a3fb
8874 lda $7b
8876 pha
8878 lda $7a
8880 pha
8882 lda $3a
8884 pha
8886 lda $39
8888 pha
8890 lda #$8d
8892 pha
8894 jsr $79
8896 jsr jum
8898 jmp $a7ae
8900 ;
8902 line cmp #$89
8904 bne line1
8906 jsr $73
8908 line1 lda #2
8910 jsr $a3fb
8912 lda $14
8914 pha
8916 lda $15
8918 pha
8920 lda $5f
8922 pha
8924 lda $60
8926 pha
8928 jsr $ad8a
8930 jsr $b7f7
8932 lda #0
8934 sta $61
8936 jsr $a613
8938 bcc line2
8940 ldy $5f
8942 lda $60
8944 line2 jsr usfp
8946 pla
8948 sta $60
8950 pla
8952 sta $5f
8954 pla
8956 sta $15
8958 pla
8960 sta $14
8962 jmp $aef7
8964 ;